package com.second.app.designpattern.singleinstance;

/**
 * @Author GYZ
 * @Date 2023/7/27
 * <pre>
 *   静态常量
 * </pre>
 */
public class SingletonInstance02 {

    private SingletonInstance02() {

    }

    static {
        instance = new SingletonInstance02();
    }

    private static final SingletonInstance02 instance;

    public static SingletonInstance02 getInstance() {
        return instance;
    }
}
